package com.qf.service.impl;

import com.qf.dao.ProjectDao;
import com.qf.pojo.Project;
import com.qf.service.ProjectService;

import java.util.List;


public class ProjectServiceImpl implements ProjectService {

    private ProjectDao projectDao;
    public void setAccountDao(ProjectDao projectDao) {

        this.projectDao = projectDao;
    }
    @Override
    public void addProject(Project project) {
        projectDao.addProject(project);
    }

    @Override
    public List findAll() {
        List<Project> projects = projectDao.findAll();
        return projects;
    }

    @Override
    public void deleteProject(int pid) {
        projectDao.deleteProject(pid);
    }
}
